% 基于TimeSpecialist man探究运动员偏离规定功率程度对时间的影响
clc,clear,close all
load("map_tokyo.mat")
%% 已知参数
Humidity = 0.59;
hight = y_altitude;
theta = 0; %风与运动员垂直方向的夹角,单位是度
V_wind = 3.*ones(1,length(GR));
Temperature = 288.75;
sigma = 500;
CP = 411.1;
W = 20720;
% figure()
% plot(GR)
% title('GR-x')
%% 
s = 0:0.25:0.75;
for n=1:length(s)
delta = s(n);
[P_plan,P_real,V,delta_T,fatigue,t(1,n)] = get_P_4(GR,CP,W,sigma,hight,V_wind,theta,Humidity,Temperature,turn_sign,delta);
%需要画图可以去掉相应注释

figure()
plot(V)
title('V-x')
figure()
plot(P_real)
title('P-x')
end
figure()
plot(s,t,'o-')
xlabel('delta')
ylabel('t')
title('TimeSpecialist的时间t随delta的变化')

